var express = require('express');
var router = express.Router();
//引入集合模型
const { classesModel } = require("../models/classesModel");


//二级路由处理代码
//获取所有班级数据
router.get('/',async function(req, res, next) {
  let classes = await classesModel.find({});
  res.send({ classes });
});


module.exports = router;
